import 'element-ui/lib/theme-chalk/index.css';
import Vue from 'vue'
import App from './App.vue'
import ElementUI from 'element-ui';
import router from "@pl/router"
import store from "@pl/vuex-store"
import '@css/app.css'

Vue.use(ElementUI);

router.beforeEach((to, from, next) => {
	if (to.path == "/")
		return next("/monitor");
	return next();
});

export default new Vue({
	el: "#app",
	store,
	router,
	template: "<App/>",
	components: {
		App
	},
	beforeCreate() {

	},
	render: h => h(App)
});